const webpack = require('webpack');

const common = require('./webpack.common');

const { merge } = require('webpack-merge');

module.exports = merge(common, {
    mode: "development",
    devServer: {
        contentBase: ['../public', '../src/assets'], //基本文件路径
        port: '3000', //开发端口
        hot: true,
        progress: true, // 打包过程中的打包进度条
    },
    devtool: "cheap-module-eval-source-map", //source-map
    plugins: [
        new webpack.HotModuleReplacementPlugin(), //开启HMR

    ]
})